package gervosou;

import java.io.*;
import java.util.*;

public class Personne 
	implements Serializable {
	
	/**
	 * 
	 */
	//private static final long serialVersionUID = -7344485586509550599L;
	// private static final long serialVersionUID = 1L;
	
	private String nom;
	private String prenom;
	private String adresse;
	private GregorianCalendar dateNaissance;
	
	private HashSet<ComptePerso> comptes; 

	public Personne(String n, String p, String ad, GregorianCalendar dn) {
		this.setNom(n);
		this.setPrenom(p);
		this.setDateNaissance(dn);
		this.setAdresse(ad);
	}
	
	public void setNom(String n){
		nom = n;
	}
	
	public void setPrenom(String p){
		prenom = p;
	}
	
	public void setDateNaissance(GregorianCalendar d){
		dateNaissance = d;
	}
	
	public void setAdresse(String ad){
		adresse = ad;
	}
	
	
	public String getNom(){
		return (nom);
	}
	
	public String getPrenom(){
		return (prenom);
	}
	
	public String getAdresse(){
		return (adresse);
	}
	
	public GregorianCalendar getDateNaissance() {
		return (dateNaissance);
	}
	
}

